package com.jy.service;

import com.jy.model.Account;
import com.jy.model.Product_release;
import com.jy.model.WithdrawalRecord;

import java.util.List;

/**
 * Created by Administrator on 2017/7/25 0025.
 */
public interface  ProductInvestmentService {
    //产品投资查询
    List<Product_release> getproduct(Integer state, Integer size);
    /*
	 * 查询投资id
	 */
    Product_release tzInfo(String id);
    /*
	 * 投资
	 */
    int investment(String product_investment_amount,String id);
    //投资确认
    List<Account> getcostInfo(Integer page, Integer rows,String userid);
    Account getSinglecostInfo(String id);
    void updateSYL(String id, double investment_profit);
    /*
	 * 确认
	 */
    int confirm(Account account);
    /*
	 * 提现确认
	 */
    int cashfirm(Account account);
    //保存提现记录
    int saveWithdraw(WithdrawalRecord wr);
    /*
    * 查询月份
    */
    List<Account> getaccrued(Integer page, Integer rows,String id);
}

